import {defineConfig} from "vite"
import uni from "@dcloudio/vite-plugin-uni"
import {resolve} from 'path'
import postcssPresetEnv from 'postcss-preset-env'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [uni()],
    css: {
        postcss: {
            plugins: [postcssPresetEnv()], // 使用预设
        },
    },
    resolve: {
        alias: {
            '@': resolve(__dirname, './src')
        }
    },
});
